<!-- BEGIN CONTENT -->
<div class="col-md-12 col-sm-12">
  <h1>Giỏ hàng</h1>
  <div class="goods-page">
    <div class="goods-data clearfix">
      <div class="table-wrapper-responsive"><?php
      if(!empty($cart)):
      ?><table summary="Shopping cart">
        <tr>
          <th class="goods-page-image">Hình ảnh</th>
          <th class="goods-page-description">Chú thích</th>
          <th class="goods-page-quantity">Số lượng</th>
          <th class="goods-page-price">Đơn giá</th>
          <th class="goods-page-total" colspan="2">Tổng</th>
        </tr><?php
        foreach($cart as $v):
          ?><tr>
            <td class="goods-page-image">
              <a href="<?php echo site_url('/product/view/'.$v['id']); ?>"><?php
              if($v['options']['hasImage'])
                $img = site_url('/assets/upload/thumbs/'.$v['options']['img']);
              else
                $img = site_url('/assets/img/'.$v['img']);
              ?><img src="<?php echo $img; ?>" /></a>
            </td>
            <td class="goods-page-description">
              <h3><a href="<?php echo site_url('/product/view/'.$v['id']); ?>"><?php echo html_escape($v['name']); ?></a></h3>
              <p>Color: <?php
              if(empty($v['options']['color']))
                echo 'Không';
              else
                echo html_escape(@$v['options']['color_name']);
              ?> Size: <?php
              if(empty($v['options']['size']))
                echo 'Không';
              else
                echo html_escape(@$v['options']['size_name']);
              ?></p>
            </td>
            <td class="goods-page-quantity">
              <div class="product-quantity">
                  <input id="product-quantity" type="text" value="<?php echo $v['qty']; ?>" readonly class="form-control input-sm">
              </div>
            </td>
            <td class="goods-page-price">
              <strong><?php echo $v['price']; ?><span>Đ</span></strong>
            </td>
            <td class="goods-page-total">
              <strong><?php echo $v['subtotal']; ?><span>Đ</span></strong>
            </td>
            <td class="del-goods-col">
              <a class="del-goods" href="#">&nbsp;</a>
            </td>
          </tr><?php

        endforeach;
      ?></table><?php
      endif;
      ?></div>

      <div class="shopping-total">
        <ul>
          <li>
            <em>Tổng cộng</em>
            <strong class="price"><?php echo $this->cart->total(); ?><span>Đ</span></strong>
          </li>
          <li>
            <em>Tiền vận chuyển</em>
            <strong class="price">0<span>Đ</span></strong>
          </li>
          <li class="shopping-total-price">
            <em>Tổng tiền</em>
            <strong class="price"><?php echo $this->cart->total(); ?><span>Đ</span></strong>
          </li>
        </ul>
      </div>
    </div>
    <button class="btn btn-default" type="submit">Tiếp tục mua sắm<i class="fa fa-shopping-cart"></i></button>
    <button class="btn btn-primary" type="submit">Thanh toán  <i class="fa fa-check"></i></button>
  </div>
</div>
<!-- END CONTENT -->
</div>